<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>绿能充 - 公告栏</title>
    <link href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
    <style>
        :root {
            --primary-color: #00a896;
            --secondary-color: #02c39a;
            --dark-color: #05668d;
            --light-color: #f0f3bd;
            --accent-color: #028090;
            --text-dark: #333;
            --text-light: #f8f9fa;
            --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Noto Sans SC', sans-serif;
            color: var(--text-dark);
            background-color: #f9f9f9;
            min-height: 100vh;
            display: flex;
        }

        /* 侧边栏样式 */
        .sidebar {
            width: 250px;
            background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
            color: white;
            padding: 20px 0;
            height: 100vh;
            position: fixed;
            box-shadow: var(--shadow);
            z-index: 100;
        }

        .sidebar-header {
            padding: 0 20px 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            margin-bottom: 20px;
        }

        .sidebar-header .logo {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
        }

        .sidebar-header .logo-icon {
            width: 40px;
            height: 40px;
            background-color: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 10px;
            font-size: 18px;
            color: var(--light-color);
        }

        .sidebar-header h3 {
            font-size: 1.2rem;
            font-weight: 500;
            margin: 0;
        }

        .sidebar-header p {
            font-size: 0.8rem;
            opacity: 0.8;
            margin: 0;
        }

        .nav-menu {
            list-style: none;
            padding: 0 15px;
        }

        .nav-item {
            margin-bottom: 5px;
        }

        .nav-link {
            display: flex;
            align-items: center;
            padding: 12px 15px;
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            border-radius: 8px;
            transition: var(--transition);
        }

        .nav-link:hover, .nav-link.active {
            background-color: rgba(255, 255, 255, 0.1);
            color: white;
        }

        .nav-link i {
            margin-right: 10px;
            width: 20px;
            text-align: center;
            font-size: 16px;
        }

        .nav-link .badge {
            margin-left: auto;
            background-color: var(--light-color);
            color: var(--dark-color);
            font-size: 0.7rem;
            padding: 3px 6px;
        }

        .user-profile {
            position: absolute;
            bottom: 20px;
            left: 0;
            width: 100%;
            padding: 0 20px;
        }

        .user-info {
            display: flex;
            align-items: center;
            padding: 10px;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            cursor: pointer;
            transition: var(--transition);
        }

        .user-info:hover {
            background-color: rgba(255, 255, 255, 0.2);
        }

        .user-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 10px;
            font-size: 14px;
        }

        .user-name {
            font-size: 0.9rem;
            font-weight: 500;
            margin-bottom: 2px;
        }

        .user-role {
            font-size: 0.7rem;
            opacity: 0.8;
        }

        /* 主内容区样式 */
        .main-content {
            flex: 1;
            margin-left: 250px;
            padding: 30px;
        }

        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
        }

        .page-title h1 {
            font-size: 1.8rem;
            font-weight: 600;
            color: var(--dark-color);
            margin-bottom: 5px;
        }

        .page-title p {
            color: #777;
            font-size: 0.9rem;
            margin: 0;
        }

        .header-actions {
            display: flex;
            gap: 10px;
        }

        .btn {
            padding: 8px 16px;
            border-radius: 8px;
            font-size: 0.9rem;
            font-weight: 500;
            border: none;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
        }

        .btn i {
            margin-right: 6px;
        }

        .btn-primary {
            background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
            color: white;
            box-shadow: 0 4px 15px rgba(0, 168, 150, 0.3);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(0, 168, 150, 0.4);
        }

        .btn-outline {
            background: transparent;
            border: 1px solid #ddd;
            color: #555;
        }

        .btn-outline:hover {
            background-color: #f5f5f5;
        }

        /* 统计卡片样式 */
        .stats-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }

        .stat-card {
            background-color: white;
            border-radius: 12px;
            padding: 20px;
            box-shadow: var(--shadow);
            transition: var(--transition);
            position: relative;
            overflow: hidden;
        }

        .stat-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        }

        .stat-card::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
        }

        .stat-card.user-card::after {
            background: linear-gradient(to right, #05668d, #028090);
        }

        .stat-card.pile-card::after {
            background: linear-gradient(to right, #00a896, #02c39a);
        }

        .stat-card.charging-card::after {
            background: linear-gradient(to right, #028090, #00a896);
        }

        .stat-card.fault-card::after {
            background: linear-gradient(to right, #f44336, #ff9800);
        }

        .stat-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .stat-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 18px;
        }

        .user-card .stat-icon {
            background: linear-gradient(135deg, #05668d, #028090);
        }

        .pile-card .stat-icon {
            background: linear-gradient(135deg, #00a896, #02c39a);
        }

        .charging-card .stat-icon {
            background: linear-gradient(135deg, #028090, #00a896);
        }

        .fault-card .stat-icon {
            background: linear-gradient(135deg, #f44336, #ff9800);
        }

        .stat-title {
            font-size: 0.9rem;
            color: #777;
            font-weight: 500;
        }

        .stat-value {
            font-size: 1.8rem;
            font-weight: 600;
            margin: 10px 0;
            color: var(--dark-color);
        }

        .stat-change {
            font-size: 0.8rem;
            display: flex;
            align-items: center;
        }

        .stat-change.positive {
            color: #4caf50;
        }

        .stat-change.negative {
            color: #f44336;
        }

        /* 公告列表样式 */
        .announcement-container {
            width: 100%;
        }

        .announcement-filter {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            flex-wrap: wrap;
            gap: 10px;
        }

        .filter-search {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .filter-search input {
            padding: 8px 15px;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-size: 0.9rem;
            width: 250px;
            max-width: 100%;
        }

        .announcement-list {
            background-color: white;
            border-radius: 12px;
            box-shadow: var(--shadow);
            overflow: hidden;
        }

        .announcement-table {
            width: 100%;
            border-collapse: collapse;
        }

        .announcement-table th,
        .announcement-table td {
            padding: 15px;
            text-align: left;
            border-bottom: 1px solid #f0f0f0;
        }

        .announcement-table th {
            background-color: #f8f9fa;
            font-weight: 500;
            color: #555;
            font-size: 0.9rem;
        }

        .announcement-table tr:hover {
            background-color: #f9f9f9;
        }

        .announcement-title {
            font-weight: 500;
            transition: var(--transition);
        }

        .announcement-title:hover {
            color: var(--primary-color);
        }

        .announcement-tag {
            display: inline-block;
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 0.75rem;
            font-weight: 500;
            margin-left: 8px;
        }

        .tag-important {
            background-color: #fff3e0;
            color: #e65100;
        }

        .tag-normal {
            background-color: #e3f2fd;
            color: #1976d2;
        }

        .announcement-status {
            text-align: center;
        }

        .status-published {
            color: #4caf50;
            font-weight: 500;
        }

        .status-draft {
            color: #ff9800;
            font-weight: 500;
        }

        .pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            margin-top: 30px;
            gap: 8px;
        }

        .page-link {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            border-radius: 4px;
            border: 1px solid #ddd;
            color: #555;
            text-decoration: none;
            transition: var(--transition);
        }

        .page-link:hover, .page-link.active {
            background-color: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }

        .page-link.disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        /* 公告详情模态框 */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            align-items: center;
            justify-content: center;
        }

        .modal-content {
            background-color: white;
            border-radius: 12px;
            width: 90%;
            max-width: 600px;
            max-height: 80vh;
            overflow-y: auto;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
            animation: modalFadeIn 0.3s;
        }

        @keyframes modalFadeIn {
            from {
                opacity: 0;
                transform: translateY(-50px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .modal-header {
            padding: 20px;
            border-bottom: 1px solid #f0f0f0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-header h3 {
            font-size: 1.3rem;
            font-weight: 600;
            color: var(--dark-color);
        }

        .modal-close {
            background: none;
            border: none;
            font-size: 1.5rem;
            color: #999;
            cursor: pointer;
            transition: var(--transition);
        }

        .modal-close:hover {
            color: var(--dark-color);
        }

        .modal-body {
            padding: 20px;
        }

        .announcement-detail {
            line-height: 1.8;
        }

        .detail-title {
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--dark-color);
            margin-bottom: 15px;
        }

        .detail-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 1px solid #f0f0f0;
            color: #777;
            font-size: 0.9rem;
        }

        .detail-content {
            color: #555;
            margin-bottom: 20px;
        }

        .detail-content p {
            margin-bottom: 15px;
        }

        .detail-attachments {
            margin-top: 20px;
            padding-top: 15px;
            border-top: 1px solid #f0f0f0;
        }

        .attachment-item {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
        }

        .attachment-icon {
            margin-right: 10px;
            color: var(--primary-color);
        }

        .attachment-link {
            color: var(--dark-color);
            text-decoration: none;
            transition: var(--transition);
        }

        .attachment-link:hover {
            color: var(--primary-color);
        }

        /* 响应式设计 */
        @media (max-width: 992px) {
            .sidebar {
                width: 70px;
                overflow: hidden;
            }

            .sidebar-header h3,
            .sidebar-header p,
            .nav-link span,
            .user-name,
            .user-role {
                display: none;
            }

            .sidebar-header {
                padding: 15px 10px;
            }

            .nav-link {
                justify-content: center;
                padding: 12px 0;
            }

            .nav-link i {
                margin-right: 0;
                font-size: 18px;
            }

            .main-content {
                margin-left: 70px;
            }
        }

        @media (max-width: 768px) {
            .stats-container {
                grid-template-columns: 1fr 1fr;
            }

            .header {
                flex-direction: column;
                align-items: flex-start;
                gap: 15px;
            }
        }

        @media (max-width: 576px) {
            .stats-container {
                grid-template-columns: 1fr;
            }

            .main-content {
                padding: 20px 15px;
            }
        }
        /* CSS样式 */
        .detail-btn {
            padding: 4px 8px;
            background-color: #1890ff;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }

        .detail-btn:hover {
            background-color: #40a9ff;
        }
    </style>
</head>
<body>
<!-- 侧边导航栏 -->
<div class="sidebar">
    <div class="sidebar-header">
        <div class="logo">
            <div class="logo-icon">
                <i class="fas fa-charging-station"></i>
            </div>
            <div>
                <h3>绿能充</h3>
                <p>用户面板</p>
            </div>
        </div>
    </div>

    <ul class="nav-menu">
        <li class="nav-item">
            <a href="/user/home" class="nav-link active">
                <i class="fas fa-tachometer-alt"></i>
                <span>仪表盘</span>
            </a>
        </li>
        <li class="nav-item">
            <a href="/user/announcement/list" class="nav-link">
                <i class="fas fa-users"></i>
                <span>公告栏</span>
                <span class="badge">5</span>
            </a>
        </li>
        <li class="nav-item">
            <a href="/user/pile/list" class="nav-link">
                <i class="fas fa-charging-station"></i>
                <span>充电桩</span>
            </a>
        </li>
        <li class="nav-item">
            <a href="/user/map/mapDetail" class="nav-link">
                <i class="fas fa-list-alt"></i>
                <span>地图</span>
            </a>
        </li>
        <li class="nav-item">
            <a href="/user/center/personCenter/${user.id}" class="nav-link">
                <i class="fas fa-exclamation-triangle"></i>
                <span>个人中心</span>
                <span class="badge">3</span>
            </a>
        </li>
    </ul>
    <div class="user-profile">
        <div class="user-info">
            <div class="user-avatar">
                <i class="fas fa-user"></i>
            </div>
            <div>
                <div class="user-name">用户</div>
                <div class="user-role">普通用户</div>
            </div>
        </div>
    </div>

</div>


<!-- 主内容区 -->
<div class="main-content">
    <div class="header">
        <div class="page-title">
            <h1>公告栏</h1>
            <p>查看系统最新公告信息</p>
        </div>
        <div class="header-actions">
            <button class="btn btn-primary">
                <i class="fas fa-refresh"></i> 刷新
            </button>
            <button class="btn btn-outline">
                <i class="fas fa-filter"></i> 筛选
            </button>
        </div>
    </div>

    <!-- 公告列表 -->
    <div class="announcement-container">
        <div class="announcement-filter">
            <div class="filter-search">
                <input type="text" placeholder="搜索公告...">
                <button class="btn btn-primary">
                    <i class="fas fa-search"></i> 搜索
                </button>
            </div>
            <div class="filter-options">
                <select class="btn btn-outline">
                    <option>全部类型</option>
                    <option>重要通知</option>
                    <option>系统公告</option>
                    <option>活动信息</option>
                </select>
            </div>
        </div>

        <div class="announcement-list">
            <table class="announcement-table">
                <thead>
                <tr>
                    <th>公告标题</th>
                    <th>发布时间</th>
                    <th>发布人</th>
                    <th>状态</th>
                    <th>操作</th>  <!-- 新增操作列 -->
                </tr>
                </thead>
                <tbody>
                <c:if test="${not empty announcementList}">
                    <c:forEach items="${announcementList}" var="announcement">
                        <tr class="announcement-row">
                            <td>
                                <div class="announcement-title">
                                        ${announcement.title}
                                    <c:if test="${announcement.type == 'MAINTENANCE'}">
                                        <span class="announcement-tag tag-important">维护</span>
                                    </c:if>
                                    <c:if test="${announcement.type == 'PROMOTION'}">
                                        <span class="announcement-tag tag-normal">活动</span>
                                    </c:if>
                                    <c:if test="${announcement.type == 'SYSTEM'}">
                                        <span class="announcement-tag tag-normal">系统</span>
                                    </c:if>
                                </div>
                            </td>
                            <td><fmt:formatDate value="${announcement.startTime}" pattern="yyyy-MM-dd HH:mm" /></td>
                            <td>${announcement.publisherId}</td>
                            <td>
                                <c:choose>
                                    <c:when test="${announcement.status == 'PUBLISHED'}">
                                        <span class="status-published">已发布</span>
                                    </c:when>
                                    <c:when test="${announcement.status == 'DRAFT'}">
                                        <span class="status-draft">草稿</span>
                                    </c:when>
                                    <c:otherwise>
                                        <span class="status-expired">已过期</span>
                                    </c:otherwise>
                                </c:choose>
                            </td>
                            <td>
                                <button class="detail-btn">
                                    <a href="${pageContext.request.contextPath}/user/announcement/detail/${announcement.id}">详情</a>
                                </button>
                            </td>
                        </tr>
                    </c:forEach>
                </c:if>
                <c:if test="${empty announcementList}">
                    <tr>
                        <td colspan="5" style="text-align: center; padding: 30px;">暂无公告数据</td>
                    </tr>
                </c:if>
                </tbody>
            </table>
        </div>

        <!-- 分页 -->

        <div class="pagination" id="pagination">
            <a href="#" class="page-link disabled" data-page="prev">
                <i class="fas fa-angle-left"></i>
            </a>
            <a href="#" class="page-link active" data-page="1">1</a>
            <a href="#" class="page-link" data-page="2">2</a>
            <a href="#" class="page-link" data-page="3">3</a>
            <a href="#" class="page-link" data-page="4">4</a>
            <a href="#" class="page-link" data-page="5">5</a>
            <a href="#" class="page-link" data-page="next">
                <i class="fas fa-angle-right"></i>
            </a>
        </div>
    </div>
</div>

<!-- 公告详情模态框 -->
<div id="announcementModal" class="modal">
    <div class="modal-content">
        <div class="modal-header">
            <h3 id="modalTitle">公告详情</h3>
            <button class="modal-close" id="closeModal">&times;</button>
        </div>
        <div class="modal-body">
            <div class="announcement-detail">
                <div class="detail-title" id="detailTitle"></div>
                <div class="detail-meta">
                    <span>发布时间: <span id="detailTime"></span></span>
                    <span>发布人: <span id="detailPublisher"></span></span>
                </div>
                <div class="detail-content" id="detailContent"></div>
                <div class="detail-attachments" id="detailAttachments"></div>
            </div>
        </div>
    </div>
</div>

<script>
    // 公告详情模态框交互
    document.addEventListener('DOMContentLoaded', function() {
        const announcementRows = document.querySelectorAll('.announcement-row');
        const modal = document.getElementById('announcementModal');
        const closeModal = document.getElementById('closeModal');
        const searchInput = document.querySelector('.filter-search input');
        const searchButton = document.querySelector('.filter-search .btn');
        const typeFilter = document.querySelector('.filter-options select');
        const refreshButton = document.querySelector('.header-actions .btn-primary');
        const filterButton = document.querySelector('.header-actions .btn-outline');
        const paginationContainer = document.querySelector('.pagination');

        // 点击模态框外部关闭
        modal.addEventListener('click', function(e) {
            if (e.target === modal) {
                modal.style.display = 'none';
                document.body.style.overflow = '';
            }
        });

        // 按ESC键关闭
        document.addEventListener('keydown', function(e) {
            if (e.key === 'Escape' && modal.style.display === 'flex') {
                modal.style.display = 'none';
                document.body.style.overflow = '';
            }
        });

        // 搜索功能
        function performSearch() {
            const searchTerm = searchInput.value.trim().toLowerCase();
            const rows = document.querySelectorAll('.announcement-table tbody tr');

            rows.forEach(row => {
                if (row.classList.contains('announcement-row')) {
                    const title = row.querySelector('.announcement-title').textContent.toLowerCase();
                    const publisher = row.cells[2].textContent.toLowerCase();

                    if (title.includes(searchTerm) || publisher.includes(searchTerm)) {
                        row.style.display = '';
                    } else {
                        row.style.display = 'none';
                    }
                }
            });
        }

        // 筛选功能
        function applyFilters() {
            const selectedType = typeFilter.value;
            const rows = document.querySelectorAll('.announcement-table tbody tr');

            rows.forEach(row => {
                if (row.classList.contains('announcement-row')) {
                    const typeTag = row.querySelector('.announcement-tag');
                    const typeText = typeTag ? typeTag.textContent : '';

                    if (selectedType === '全部类型' ||
                        (selectedType === '重要通知' && typeText === '维护') ||
                        (selectedType === '系统公告' && typeText === '系统') ||
                        (selectedType === '活动信息' && typeText === '活动')) {
                        if (row.style.display !== 'none') {
                            row.style.display = '';
                        }
                    } else {
                        row.style.display = 'none';
                    }
                }
            });
        }

        // 刷新数据
        function refreshData() {
            // 这里可以添加AJAX请求来获取最新数据
            location.reload(); // 简单实现，重新加载页面
        }

        // 初始化分页
        function initPagination() {
            // 实际项目中应该从服务器获取总页数
            const totalPages = 5; // 假设总共有5页

            // 清空现有分页
            paginationContainer.innerHTML = '';

            // 添加上一页按钮
            const prevLink = document.createElement('a');
            prevLink.href = '#';
            prevLink.className = 'page-link';
            prevLink.innerHTML = '<i class="fas fa-chevron-left"></i>';
            prevLink.addEventListener('click', function(e) {
                e.preventDefault();
                // 这里应该实现上一页逻辑
                console.log('上一页');
            });
            paginationContainer.appendChild(prevLink);

            // 添加页码
            for (let i = 1; i <= totalPages; i++) {
                const pageLink = document.createElement('a');
                pageLink.href = '#';
                pageLink.className = 'page-link' + (i === 1 ? ' active' : '');
                pageLink.textContent = i;
                pageLink.addEventListener('click', function(e) {
                    e.preventDefault();
                    // 移除所有active类
                    document.querySelectorAll('.pagination .page-link').forEach(link => {
                        link.classList.remove('active');
                    });
                    // 给当前点击的添加active类
                    this.classList.add('active');
                    // 这里应该实现页码跳转逻辑
                    console.log('跳转到第', i, '页');
                });
                paginationContainer.appendChild(pageLink);
            }

            // 添加下一页按钮
            const nextLink = document.createElement('a');
            nextLink.href = '#';
            nextLink.className = 'page-link';
            nextLink.innerHTML = '<i class="fas fa-chevron-right"></i>';
            nextLink.addEventListener('click', function(e) {
                e.preventDefault();
                // 这里应该实现下一页逻辑
                console.log('下一页');
            });
            paginationContainer.appendChild(nextLink);
        }

        // 格式化日期时间
        function formatDateTime(dateString) {
            const date = new Date(dateString);
            return date.toLocaleString('zh-CN', {
                year: 'numeric',
                month: '2-digit',
                day: '2-digit',
                hour: '2-digit',
                minute: '2-digit'
            }).replace(/\//g, '-');
        }

        // 事件监听
        searchButton.addEventListener('click', performSearch);
        searchInput.addEventListener('keypress', function(e) {
            if (e.key === 'Enter') {
                performSearch();
            }
        });

        typeFilter.addEventListener('change', applyFilters);
        refreshButton.addEventListener('click', refreshData);
        filterButton.addEventListener('click', function() {
            // 这里可以展开更多筛选选项
            alert('更多筛选功能开发中');
        });

        // 初始化分页
        initPagination();
    });
</script>
</body>
</html>